{__NOLAYOUT__}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={:C('DEFAULT_CHARSET')}" />
<title>{:L('system_name')}</title>
<load href='./Public/Css/admin_login.css' />
<load href="./Public/Js/jquery.min.js"/>
<load href="./Public/Js/jquery.validate.js"/>
<load href="./Public/Js/jquery.form.js"/>
<load href="./Public/Js/my.js"/>
<!--[if IE 6]>
		<script src="./Public/Js/png.js"  type="text/javascript" ></script>
		<script type="text/javascript">
		DD_belatedPNG.fix(' .login_box ');
		</script>
<![endif]-->
</head>
<body onLoad="reload()" id="loginbg" >
<div class="login_box" style="position: relative;">
<div class="positions" style="position: absolute;top: 104px;left: 74px;">
</div>
<form method='post' name="login" id="form1" action="{:U('Login/doLogin')}">
	<span class="username"><label>{:L('jg_account')}:</label><input type="text" id="username" name="username" onfocus="this.className='sel'" onblur="this.className=''" /></span>
	<span class="username"><label>{:L('password')}:</label><input type="password" name="password" id="password" onfocus="this.className='sel'" onblur="this.className=''" /></span>
	{if $admin_verify}
	<span class="verify" style="display:none;"><label>{:L('verify')}:</label><input name="verifyCode" id="verifyCode" value="" maxlength="4" onfocus="this.className='sel'" onblur="this.className=''" />
    <img src="{:U('Home/Index/verify')}" onclick="javascript:resetVerifyCode();" class="checkcode"  title="{:L('resetVerifyCode')}" id="verifyImage"/></span>
    {/if}
    <span class="btn_login"><label></label><input type="hidden" name="ajax" value="1"><input type="submit" value="{:L('login')}" class="button"> <input type="reset" name="reset" value="{:L('reset')}" class="button" id="reset" /></span>
    <div id="resultinfo"></div>
</form>
</div>
<p class="bottominfo">Copyright © 2015 <a href="http://isto.com.cn" target="_blank" title="正在传媒" style="display:none;">	正在传媒</a><a>{:L('system_name')}</a> All Rights Reserved</p>

<script language="JavaScript">

jQuery(document).ready(function($){
	$('#form1').ajaxForm({
		beforeSend:function(){
			$('#resultinfo').html('<img src="./Public/Images/msg_loading.gif">').show();;
		 },
		success:       complete,  // post-submit callback
		dataType: 'json'
	});


});
function complete(data){
        if (data.status==1)
        {
		 $('#resultinfo').html(data.info).show();
		 //art.dialog.tips('{:L("logined_ok")}',2);
		 setTimeout(function(){	window.location.href = '{:U("Index/index")}';},1000);
        }else{
            $('#resultinfo').html(data.info).show();
        }
}
function reload(){
	document.login.username.focus();
	if(self!=top){
	 window.top.location.href = '{:U("Login/index")}';
	}
	resetVerifyCode();
}

</script>
</body>
</html>                                                                                                                                                                                                                                                                                                                                                                                                                                                